Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: adding extra headers feature. #79

Merged
merged 1 commit into from
Aug 9, 2023
Merged

Conversation

andrey-canon
Copy link
Collaborator

Description

This allows to include header from the django settings in the api _client session https://edunext.atlassian.net/browse/FUTUREX-490

@andrey-canon andrey-canon changed the base branch from and/add_course_mapping to master August 8, 2023 21:56
This allows to include header from the django settings in the api _client session
https://edunext.atlassian.net/browse/FUTUREX-490
eox_nelp/api_clients/__init__.py Show resolved Hide resolved
@@ -27,7 +28,7 @@ def test_enrollment_progress(self, auth_mock, post_mock):
- Response is the expected value
- make_post was called with the right values.
"""
auth_mock.return_value = {}
auth_mock.return_value = requests.Session()
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why the use of extra_headers_key. Needs the change of the empty dict to request.Session()

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should have been modified in the previous refactor since the _authenticate method returns a Session instead of a dict

@johanseto johanseto self-requested a review August 8, 2023 22:19
@andrey-canon andrey-canon merged commit 1d50a43 into master Aug 9, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants